import { createStore } from 'vuex'

import type { IRootState } from './types'

import login from './login/login'
import door from './door/door'
import user from './main/user/user'

export default createStore<IRootState>({
  state() {
    return {
      name: 1
    }
  },
  getters: {},
  mutations: {},
  actions: {},
  modules: {
    login,
    door,
    user
  }
})
